import request from '@/utils/request'

// 查询监测分组列表
export function listMonitorGroup(query) {
  return request({
    url: '/manage-api/business/monitorGroup/list',
    method: 'get',
    params: query
  })
}

// 查询监测分组详细
export function getMonitorGroup(monitorGroupId) {
  return request({
    url: '/manage-api/business/monitorGroup/' + monitorGroupId,
    method: 'get'
  })
}

// 新增监测分组
export function addMonitorGroup(data) {
  return request({
    url: '/manage-api/business/monitorGroup',
    method: 'post',
    data: data
  })
}

// 修改监测分组
export function updateMonitorGroup(data) {
  return request({
    url: '/manage-api/business/monitorGroup',
    method: 'put',
    data: data
  })
}

// 删除监测分组
export function delMonitorGroup(monitorGroupId) {
  return request({
    url: '/manage-api/business/monitorGroup/' + monitorGroupId,
    method: 'delete'
  })
}
